package com.chuangyang.fixboxmaster.ui.widgets;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;

import com.chuangyang.fixboxmaster.R;


/**
 * 
 * @author jankey
 * 
 */
public class MyProgressDlg extends Dialog {

	private Context context;

	private ImageView load_image;

	public MyProgressDlg(Context context) {
		super(context);
		this.context = context;
		
	}

	public MyProgressDlg(Context context, int theme) {
		super(context, theme);
		this.context = context;
	}

	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
	
		setContentView(R.layout.dialog_progress);
//		load_image = (ImageView)findViewById(R.id.load_image);
//		Animation animation = AnimationUtils.loadAnimation(context, R.anim.progress_bar_anim);
//		LinearInterpolator lin = new LinearInterpolator();  
//		animation.setInterpolator(lin);
//		load_image.startAnimation(animation);
		/*RotateAnimation animation = new RotateAnimation(0f,720f,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
		animation.setFillAfter(true);
		animation.setDuration(1000);
		animation.setRepeatCount(-1);*/
	/*	Animation animation = AnimationUtils.loadAnimation(context, R.anim.progress);
		LinearInterpolator lin = new LinearInterpolator();  
		animation.setInterpolator(lin);
		load_image.startAnimation(animation);*/
		//this.setCancelable(false);
	}
	

	
	
}
